#ifndef RSTP_CLIENT_H
#define RSTP_CLIENT_H

#include <liveMedia.hh>
#include <BasicUsageEnvironment.hh>

#include <string>

class RtspSession {
public:
    explicit RtspSession(int id, const char* progName, const char* url);
    virtual ~RtspSession();

    void run();
public:
    void stop();
    //void gotFrame(const QImage& image);
protected:
    bool openURL(UsageEnvironment& env, const char* progName, const char * url);
private:
    int _id;
    std::string _progName;
    std::string _url;
    RTSPClient* _rtspClient;
    char _eventLoopWatchVariable;
};

#endif // RSTP_CLIENT_H
